//
//  NSDate+CM_DateTools.h
//  CoolMove
//
//  Created by CA on 15/10/30.
//  Copyright © 2015年 CA. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <DateTools/DateTools.h>

typedef NS_ENUM(NSInteger, WeekDay) {
    WeekDayMonday = 1,
    WeekDayTuesday,
    WeekDayWednesday,
    WeekDayThursday,
    WeekDayFriday,
    WeekDaySaturday,
    WeekDaySunday
};

@interface NSDate (CM_DateTools)

/**
 *  当前时间对应周里面获取周对应天的日期
 *
 *  @param weekDay 周一至周日
 *
 *  @return 返回对应的月日格式:月/日
 */
- (NSString *)convertMonthDayByWeekDay:(WeekDay)weekDay;
/**
 * @brief 获取两个日期之间的天数
 * @return    总天数
 */
+ (NSInteger)numberOfDaysWithFromDate:(NSDate *)fromDate toDate:(NSDate *)toDate;
/**
 * @brief 获取两个日期之间的相差的月份
 * @return    总月份数
 */
+ (NSInteger)numberOfMonthsWithFromDate:(NSDate *)fromDate toDate:(NSDate *)toDate;

@end
